﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 权限数据传输对象
    /// </summary>
    public class PermissionDto
    {
        public PermissionDto()
        {
            Id = Guid.NewGuid().ToString();
            DependentResources = new List<string[]>();
        }

        public PermissionDto(string code, string name)
            : this()
        {
            Code = code;
            Name = name;
        }

        /// <summary>
        /// Id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 唯一标识码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 依赖资源集合
        /// </summary>
        public List<string[]> DependentResources { get; set; }
    }
}
